﻿
/*********************************************************************************
--时间：2012-12-17 09:48:32
--作者：jjpeng
--邮箱：ling121211@gmail.com
--说明：Mongodb过滤器
 * 
 * 基于官方驱动 V2.2.1版本
 * 
 * 链接模式
--
*********************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PCC.Framework.Mongodb
{
    /// <summary>
    /// Server connection mode.
    /// </summary>
    [Serializable]
    public enum ConnectionMode
    {
        /// <summary>
        /// Automatically determine how to connect.
        /// </summary>
        automatic,
        /// <summary>
        /// Connect directly to a server.
        /// </summary>
        direct,
        /// <summary>
        /// Connect to a replica set.
        /// </summary>
        replicaSet,
        /// <summary>
        /// Connect to one or more shard routers.
        /// </summary>
        shardRouter
    }
}
